home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / wild / include / inline / drawmodule.h < prev    next >
C/C++ Source or Header  |  1999-01-01  |  2KB  |  60 lines

  1. #ifndef _INLINE_DRAWMODULE_H
  2. #define _INLINE_DRAWMODULE_H
  3.  
  4. #ifndef __INLINE_MACROS_H
  5. #include <inline/macros.h>
  6. #endif
  7.  
  8. #ifndef DRAWMODULE_BASE_NAME
  9. #define DRAWMODULE_BASE_NAME DrawModuleBase
  10. #endif
  11.  
  12. #define SetModuleTags(WildApp, Tags) \
  13.     LP2NR(0x1E, SetModuleTags, struct WildApp *, WildApp, a0, struct TagItem *, Tags, a1, \
  14.     , DRAWMODULE_BASE_NAME)
  15.  
  16. #ifndef NO_INLINE_STDARG
  17. #define SetModuleTagsTags(WildApp, tags...) \
  18.     ({ULONG _tags[] = {tags}; SetModuleTags((WildApp), (struct TagItem *) _tags);})
  19. #endif
  20.  
  21. #define GetModuleTags(WildApp, Tags) \
  22.     LP2NR(0x24, GetModuleTags, struct WildApp *, WildApp, a0, struct TagItem *, Tags, a1, \
  23.     , DRAWMODULE_BASE_NAME)
  24.  
  25. #ifndef NO_INLINE_STDARG
  26. #define GetModuleTagsTags(WildApp, tags...) \
  27.     ({ULONG _tags[] = {tags}; GetModuleTags((WildApp), (struct TagItem *) _tags);})
  28. #endif
  29.  
  30. #define SetupModule(WildApp, Tags) \
  31.     LP2(0x2A, BOOL, SetupModule, struct WildApp *, WildApp, a0, struct TagItem *, Tags, a1, \
  32.     , DRAWMODULE_BASE_NAME)
  33.  
  34. #ifndef NO_INLINE_STDARG
  35. #define SetupModuleTags(WildApp, tags...) \
  36.     ({ULONG _tags[] = {tags}; SetupModule((WildApp), (struct TagItem *) _tags);})
  37. #endif
  38.  
  39. #define CloseModule(WildApp) \
  40.     LP1NR(0x30, CloseModule, struct WildApp *, WildApp, a0, \
  41.     , DRAWMODULE_BASE_NAME)
  42.  
  43. #define RefreshModule(WildApp) \
  44.     LP1(0x36, BOOL, RefreshModule, struct WildApp *, WildApp, a0, \
  45.     , DRAWMODULE_BASE_NAME)
  46.  
  47. #define DRWPaintArray(WildApp, BSPEntries) \
  48.     LP2NR(0x3C, DRWPaintArray, struct WildApp *, WildApp, a0, ULONG *, BSPEntries, a1, \
  49.     , DRAWMODULE_BASE_NAME)
  50.  
  51. #define DRWInitFrame(WildApp) \
  52.     LP1NR(0x42, DRWInitFrame, struct WildApp *, WildApp, a0, \
  53.     , DRAWMODULE_BASE_NAME)
  54.  
  55. #define DRWInitTexture(WildApp, Texture) \
  56.     LP2(0x48, BOOL, DRWInitTexture, struct WildApp *, WildApp, a0, struct WildTexture *, Texture, a1, \
  57.     , DRAWMODULE_BASE_NAME)
  58.  
  59. #endif /*  _INLINE_DRAWMODULE_H  */
  60.